]>
Commit | Line | Data |
---|---|---|
8df5f89a | 1 | # |
d1d622ab | 2 | # Conditional build: |
8dcfc624 | 3 | %bcond_without static_libs # don't build static library |
db10935c | 4 | %bcond_without tests # check target |
d1d622ab | 5 | # |
5133f76b | 6 | Summary: The Typesafe Signal Framework for C++ |
635b8004 | 7 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ |
ab0420db | 8 | Name: libsigc++3 |
b876030a | 9 | Version: 3.0.2 |
1e5c6e05 | 10 | Release: 1 |
c27f8333 | 11 | Epoch: 1 |
3c2e80c3 | 12 | License: LGPL v2.1+ |
5133f76b | 13 | Group: Libraries |
ab0420db | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/3.0/libsigc++-%{version}.tar.xz |
b876030a | 15 | # Source0-md5: 1f93f8ed4ead38e876157834b2c57c21 |
13e32c2e | 16 | URL: https://libsigcplusplus.github.io/libsigcplusplus/ |
3e00d680 | 17 | BuildRequires: autoconf >= 2.59 |
f3a3158c | 18 | BuildRequires: automake >= 1:1.9 |
ab0420db | 19 | BuildRequires: libstdc++-devel >= 6:7 |
1c773249 | 20 | BuildRequires: libtool >= 2:2.0 |
0764e6a0 | 21 | BuildRequires: m4 |
ab0420db | 22 | BuildRequires: mm-common >= 0.9.12 |
b02845a0 | 23 | BuildRequires: perl-base |
d33e9e7d | 24 | BuildRequires: pkgconfig |
6e5cfdbe JB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
d0f81991 | 27 | Obsoletes: libsigc++-examples |
8deca2bf | 28 | Conflicts: libsigc++ < 1.1.0 |
b02845a0 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c014a68e | 30 | |
31 | %description | |
ae7d4fa5 | 32 | This library implements a full callback system for use in widget |
33 | libraries, abstract interfaces, and general programming. Originally | |
a4ed2849 | 34 | part of the Gtk-- widget set, libsigc++ is now a seperate library to |
ae7d4fa5 | 35 | provide for more general use. It is the most complete library of its |
36 | kind with the ablity to connect an abstract callback to a class | |
37 | method, function, or function object. It contains adaptor classes for | |
38 | connection of dissimilar callbacks and has an ease of use unmatched by | |
39 | other C++ callback libraries. | |
c014a68e | 40 | |
e1f1abbc JR |
41 | %description -l pl.UTF-8 |
42 | Ta biblioteka jest implementacją pełnego systemu callbacków do | |
43 | używania w bibliotekach widgetów, interfejsach abstrakcyjnych i | |
44 | ogólnym programowaniu. Oryginalnie była to część zestawu widgetów | |
45 | Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego | |
46 | przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością | |
47 | łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub | |
48 | obiektami funkcji. Zawiera klasy adapterów do łączenia różnych | |
49 | callbacków. | |
45bd5da5 | 50 | |
c014a68e | 51 | %package devel |
45bd5da5 | 52 | Summary: Development tools for the Typesafe Signal Framework for C++ |
635b8004 | 53 | Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++ |
5133f76b | 54 | Group: Development/Libraries |
b02845a0 | 55 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ab0420db | 56 | Requires: libstdc++-devel >= 6:7 |
8deca2bf | 57 | Requires: m4 |
c014a68e | 58 | |
59 | %description devel | |
5133f76b | 60 | Development tools for the Typesafe Signal Framework for C++. |
c014a68e | 61 | |
e1f1abbc JR |
62 | %description devel -l pl.UTF-8 |
63 | Narzędzia programistyczne do środowiska libsigc++ - sygnałów z | |
64 | kontrolą typów. | |
45bd5da5 | 65 | |
5133f76b | 66 | %package static |
67 | Summary: Static Typesafe Signal Framework for C++ libraries | |
635b8004 | 68 | Summary(pl.UTF-8): Statyczna biblioteka libsigc++ |
5133f76b | 69 | Group: Development/Libraries |
b02845a0 | 70 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c014a68e | 71 | |
5133f76b | 72 | %description static |
73 | Static Typesafe Signal Framework for C++ libraries. | |
c014a68e | 74 | |
e1f1abbc JR |
75 | %description static -l pl.UTF-8 |
76 | Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów. | |
45bd5da5 | 77 | |
a5958e16 JB |
78 | %package doc |
79 | Summary: Reference documentation for libsigc++ | |
80 | Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++ | |
81 | Group: Documentation | |
82 | ||
83 | %description doc | |
84 | Reference documentation for libsigc++. | |
85 | ||
86 | %description doc -l pl.UTF-8 | |
87 | Szczegółowa dokumentacja dla libsigc++. | |
88 | ||
c014a68e | 89 | %prep |
ab0420db | 90 | %setup -q -n libsigc++-%{version} |
c014a68e | 91 | |
92 | %build | |
a09c286c | 93 | %{__libtoolize} |
f3a3158c | 94 | %{__aclocal} -I build |
d91e70f5 | 95 | %{__autoconf} |
96 | %{__automake} | |
57120020 | 97 | %configure \ |
db10935c | 98 | --disable-silent-rules \ |
f3a3158c | 99 | %{?with_static_libs:--enable-static} |
db10935c JB |
100 | %{__make} |
101 | ||
102 | %if %{with tests} | |
103 | %{__make} check | |
104 | %endif | |
c014a68e | 105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
0764e6a0 | 108 | |
bc7295d0 | 109 | %{__make} install \ |
f864fec3 | 110 | DESTDIR=$RPM_BUILD_ROOT |
5133f76b | 111 | |
ab0420db JB |
112 | # obsoleted by pkg-config |
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsigc-3.0.la | |
114 | ||
c014a68e | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
45bd5da5 JB |
118 | %post -p /sbin/ldconfig |
119 | %postun -p /sbin/ldconfig | |
120 | ||
c014a68e | 121 | %files |
5133f76b | 122 | %defattr(644,root,root,755) |
ab0420db JB |
123 | %doc AUTHORS ChangeLog NEWS README.md |
124 | %attr(755,root,root) %{_libdir}/libsigc-3.0.so.*.*.* | |
125 | %attr(755,root,root) %ghost %{_libdir}/libsigc-3.0.so.0 | |
c014a68e | 126 | |
127 | %files devel | |
5133f76b | 128 | %defattr(644,root,root,755) |
ab0420db JB |
129 | %attr(755,root,root) %{_libdir}/libsigc-3.0.so |
130 | %{_includedir}/sigc++-3.0 | |
131 | %{_libdir}/sigc++-3.0 | |
132 | %{_pkgconfigdir}/sigc++-3.0.pc | |
a4ed2849 | 133 | |
8dcfc624 | 134 | %if %{with static_libs} |
5133f76b | 135 | %files static |
ae7d4fa5 | 136 | %defattr(644,root,root,755) |
ab0420db | 137 | %{_libdir}/libsigc-3.0.a |
57120020 | 138 | %endif |
3c2e80c3 JB |
139 | |
140 | %files doc | |
141 | %defattr(644,root,root,755) | |
ab0420db JB |
142 | %{_datadir}/devhelp/books/libsigc++-3.0 |
143 | %{_docdir}/libsigc++-3.0 |